/*
 *  RunRunGame.h
 *  final
 *
 *  Created by Javier Quevedo on 1/21/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */


#import "Scene.h"
#import "Dino.h"
#import "Cat.h"
#import "Locust.h"
#import "Camera.h"
#import "Map.h"

typedef enum GameState {
	DS_SelectChar = 0,
	DS_Play = 1,
	DS_End = 2,
} GameState;


typedef enum Character{
	CC_Cat = 0,
	CC_Locust = 1,
} Character;


typedef struct RunRunGame{
	Scene *scene;
	Dino *dino;
	Cat *cat;
	Locust *locust;
	Map *map;
	Character currentCharacter;
	GLfloat timestamp;
	GameState state;
	Camera *camera;

}RunRunGame;


RunRunGame *initRunRunGame(Camera *camera);
void releaseRunRunGame(RunRunGame *game);
void updateScene(RunRunGame *game, GLint currentTime);
void renderGameScene(RunRunGame *game);
void setGameSelectChar(RunRunGame *game);
void setGamePlay(RunRunGame *game);
void gameKeyboardEventHandler(RunRunGame *game, GLubyte key);
